package snapex.expense.service.impl;

import org.springframework.stereotype.Service;

import snapex.expense.service.ICurrencyRateService;

@Service
public class CurrencyRateService implements ICurrencyRateService {
//
//	@Autowired
//	private TCurrencyRateMapper currencyRateMapper;
//	
////	@Override
////	public BigDecimal getRate(String baseCurrency, String currency) {
////		return BigDecimal.ONE;
////	}
//
//	@Override
//	public BigDecimal getRateCNY(String currency) {
//		
//		BigDecimal rate = BigDecimal.ONE;
//		
//		List<TCurrencyRate> ccyRate = currencyRateMapper.selectByExample().where(TCurrencyRateDynamicSqlSupport.currency, isEqualTo(currency)).build().execute();
//		if(!ccyRate.isEmpty()) {
//			rate = ccyRate.get(0).getRate();
//		}
//		
//		return rate;
//	}
}
